package com.ytjj.qmyx.admin.controller.data;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.admin.model.data.request.ClickStatisticsRequest;
import com.ytjj.qmyx.admin.service.data.ClickStatisticsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *
 *
 * @Version: 1.0
 */
@RestController
@RequestMapping("/clickStatistics")
public class ClickStatisticsController {

    @Resource
    private ClickStatisticsService clickStatisticsService;

    @PostMapping("/list")
    public CommonResult getClickStatistics(@RequestBody ClickStatisticsRequest clickStatisticsRequest) {
        return CommonResult.success(clickStatisticsService.getClickStatisticsList(clickStatisticsRequest));
    }

}
